﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DMS.Dal.Extensions;

namespace DMS.Dal
{
     public partial class DMSContext
    {
         public DMSContext(DatabaseNode databaseNode)
            : base(databaseNode.GetName())
        {
            this.Configuration.LazyLoadingEnabled = false;
        }

        public DMSContext()
            : base(DatabaseNode.Default.GetName())
        {
            this.Configuration.LazyLoadingEnabled = false;
        }

        public DMSContext(System.Transactions.IsolationLevel isolationLevel, DatabaseNode databaseNode = DatabaseNode.Default)
            : base(databaseNode.GetName())
        {
            this.Configuration.LazyLoadingEnabled = false;
            this.SetIsolationLevel(isolationLevel);
        }
        
    }
}
